#include <stdio.h> 
int main() { 
int year, offset, animal_index;
 char *animals[] = {"rat", "ox", "tiger", "rabbit", "dragon", "snake", "horse", "sheep", "monkey", "rooster", "dog", "pig"};
  scanf("%d", &year);
   offset = (year - 1900) % 12; 
   if (offset < 0){ 
   offset += 12; 
} 
   animal_index = offset;
    printf("%s\n", animals[animal_index]);
	 return 0;
	  }
